home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 47 / PC Gamer IT CD 47 1-2.iso / Engine / explorer / ie4shl95.cab / printers.htt < prev    next >
Text File  |  1997-09-18  |  5KB  |  114 lines

  1. <!-- 
  2.  * This file was automatically generated by Microsoft Internet Explorer 4.0 
  3.  * using the file %TEMPLATEDIR%\printers.htt 
  4.  -->
  5.  
  6. <html>
  7.    <head>
  8.       <script language="JavaScript" for="FileList" event="SelectionChanged">
  9.          var L_Help_Text = "The Add Printer wizard walks you step-by-step through installing a printer.  Just follow the instructions on each screen.";
  10.          var items       = FileList.FocusedItem;
  11.          var fldr        = FileList.Folder;
  12.          var data;
  13.          var text;
  14.  
  15.          // name
  16.          text = "<b>" + items.Name + "</b>";
  17.  
  18.          // comment
  19.          data = fldr.GetDetailsOf(items, 3);
  20.          if (data != "")
  21.             text += "<br>" + data;
  22.  
  23.          // documents
  24.          data = fldr.GetDetailsOf(items, 1);
  25.          if (data != "")
  26.             text += "<br><br>" + fldr.GetDetailsOf(null, 1) + ": " + data;
  27.  
  28.          // status
  29.          data = fldr.GetDetailsOf(items, 2);
  30.          if (data != "")
  31.             text += "<br><br><b><font color=red>" + data + "</font></b>";
  32.  
  33.          // tip?
  34.          data = fldr.GetDetailsOf(items, -1);
  35.          if (data != "" && data != name)
  36.             text += "<br><br>" + data;
  37.  
  38.          // help
  39.          if (fldr.GetDetailsOf(items, 0) == "WinUtils_NewObject")
  40.             text += "<br><br>" + L_Help_Text;
  41.  
  42.          SPAN1.innerHTML = text;
  43.       </script>
  44.  
  45.       <script>
  46.          function fixSize() {
  47.             var hideTop = 200
  48.             var hideLeft = 400
  49.             var ch = document.body.clientHeight
  50.             var cw = document.body.clientWidth
  51.             if (hideTop > ch) {
  52.                document.all.heading.visibility = "hidden"
  53.                document.all.FileList.style.pixelTop = 0
  54.                document.all.panel.style.pixelTop = 0
  55.             } else {
  56.                document.all.heading.visibility = "visible"
  57.                document.all.FileList.style.top = (document.all.heading.offsetHeight - 32) + "px"
  58.                document.all.panel.style.top = (document.all.heading.offsetHeight) + "px"
  59.                document.all.rule.style.width = (cw - 84) + "px"        
  60.             }
  61.             if (hideLeft > cw) {
  62.                document.all.panel.visibility = "hidden"
  63.                document.all.FileList.style.pixelLeft = 0
  64.                document.all.FileList.style.pixelTop = document.all.panel.style.pixelTop
  65.             } else {
  66.                document.all.panel.visibility = "visible"
  67.                document.all.FileList.style.pixelLeft = document.all.panel.style.pixelWidth
  68.             }
  69.             document.all.FileList.style.pixelWidth = cw - document.all.FileList.style.pixelLeft
  70.             document.all.FileList.style.pixelHeight = ch - document.all.FileList.style.pixelTop
  71.             document.all.panel.style.pixelHeight = ch - document.all.panel.style.pixelTop
  72.          }
  73.       </script>
  74.    </head>
  75.  
  76.    <body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0 scroll=no onload="fixSize()">
  77.       <div ID="heading" style="position: absolute; width: 100%; height: 88px; background: URL(res://webvw.dll/printers.gif) no-repeat">
  78.          <p style="margin-left: 80px; padding-left: 20px; margin-top: 16px">
  79.          <table>
  80.             <tr>
  81.                <td nowrap>
  82.                   <font style="font: 16pt/16pt verdana; font-weight: bold; color: #0099FF">
  83.                      %THISDIRNAME%
  84.                   </font>
  85.                </td>
  86.             </tr>
  87.          </table>
  88.          <hr ID="rule" style="position: absolute; top: 44px; left: 84px" size=1px color=black>
  89.       </div>
  90.  
  91.       <div ID="panel" style="position: absolute; top: 88px; width: 30%; background: window; overflow: auto">
  92.          <p style="margin-left: 20px; margin-top: 8px; margin-right: 8px">
  93.          <font style="font: 8pt/10pt verdana; font-weight: normal; color: text">
  94.             <span id="SPAN1">
  95.                This folder contains information about your current printers and a wizard to help you install new ones.
  96.                <br><br>
  97.                To get information about a printer that's already installed, right-click the printer's icon.
  98.                <br><br>
  99.                To install a new printer, click Add Printer to start the Add Printer wizard.
  100.             </span>
  101.          </font>
  102.       </div>
  103.  
  104.       <object id="FileList" border=0 tabindex=1
  105.          classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2"
  106.          style="position: absolute; left: 30%; top: 88px; width: 70%; height: 100%">
  107.       </object>
  108.  
  109.       <script language="JavaScript">
  110.          window.onresize = fixSize;
  111.       </script>
  112.    </body>
  113. </html>
  114.